package com.yaorange.nongjt.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.yaorange.nongjt.mapper.NjtInvoiceStatisticsMapper;
import com.yaorange.nongjt.domain.NjtInvoiceStatistics;
import com.yaorange.nongjt.service.INjtInvoiceStatisticsService;

/**
 * 产品开具统计Service业务层处理
 * 
 * @author zly
 * @date 2025-03-07
 */
@Service
public class NjtInvoiceStatisticsServiceImpl implements INjtInvoiceStatisticsService 
{
    @Autowired
    private NjtInvoiceStatisticsMapper njtInvoiceStatisticsMapper;

    /**
     * 查询产品开具统计
     * 
     * @param id 产品开具统计主键
     * @return 产品开具统计
     */
    @Override
    public NjtInvoiceStatistics selectNjtInvoiceStatisticsById(Long id)
    {
        return njtInvoiceStatisticsMapper.selectNjtInvoiceStatisticsById(id);
    }

    /**
     * 查询产品开具统计列表
     * 
     * @param njtInvoiceStatistics 产品开具统计
     * @return 产品开具统计
     */
    @Override
    public List<NjtInvoiceStatistics> selectNjtInvoiceStatisticsList(NjtInvoiceStatistics njtInvoiceStatistics)
    {
        return njtInvoiceStatisticsMapper.selectNjtInvoiceStatisticsList(njtInvoiceStatistics);
    }

    /**
     * 新增产品开具统计
     * 
     * @param njtInvoiceStatistics 产品开具统计
     * @return 结果
     */
    @Override
    public int insertNjtInvoiceStatistics(NjtInvoiceStatistics njtInvoiceStatistics)
    {
        return njtInvoiceStatisticsMapper.insertNjtInvoiceStatistics(njtInvoiceStatistics);
    }

    /**
     * 修改产品开具统计
     * 
     * @param njtInvoiceStatistics 产品开具统计
     * @return 结果
     */
    @Override
    public int updateNjtInvoiceStatistics(NjtInvoiceStatistics njtInvoiceStatistics)
    {
        return njtInvoiceStatisticsMapper.updateNjtInvoiceStatistics(njtInvoiceStatistics);
    }

    /**
     * 批量删除产品开具统计
     * 
     * @param ids 需要删除的产品开具统计主键
     * @return 结果
     */
    @Override
    public int deleteNjtInvoiceStatisticsByIds(Long[] ids)
    {
        return njtInvoiceStatisticsMapper.deleteNjtInvoiceStatisticsByIds(ids);
    }

    /**
     * 删除产品开具统计信息
     * 
     * @param id 产品开具统计主键
     * @return 结果
     */
    @Override
    public int deleteNjtInvoiceStatisticsById(Long id)
    {
        return njtInvoiceStatisticsMapper.deleteNjtInvoiceStatisticsById(id);
    }
}
